Matt drew my attention to PieSpy in a comment. Here is a link to information and downloadable code, PieSpy – Inferring and Visualizing Social Network on IRC. See the page on Social Shakespeare where there are graphs of the networks of people in plays and animations of the networks over the extent of the play.
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed